package com.kust.smarhome.background.common.vo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class MoneyVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "商品id不能为空")
    private Integer id;

    @NotNull(message = "价格不能为空")
    private Double money;

}
